//by k1 2021.4.28

	_make = createMarker ["marker_unitsts_2", [400,400]];
	_make setMarkerType "mil_dot";
	_make setMarkerSize [0,0];
	unitsts_fn2_k1 = {
		_fps = round(diag_fps);
		_grp = count allGroups;
		_unit = {alive _x && {_x isKindOf "CaManBase"} && {!isPlayer _x}} count allUnits;
		_veh = {alive _x && {_x isKindOf "air" || {_x isKindOf "LandVehicle" && {!(_x isKindOf "StaticWeapon")}} || {_x isKindOf "Ship"}}} count vehicles;
		_Dead = count allDead;
		"marker_unitsts_2" setMarkerText (format["服务器FPS: %1  小队: %2  单位: %3  载具: %4  尸体: %5", _fps,_grp,_unit,_veh,_Dead]);
		"marker_unitsts_2" setMarkerColor (switch true do {
			case (_fps <= 10): {"ColorRed"};
			case (_fps <= 20 && {_fps > 10}): {"ColorOrange"};
			case (_fps < 30 && {_fps > 20}): {"ColorYellow"};
			case (_fps >= 30): {"ColorGreen"};
			default {"ColorWhite"};
		});
	};
	_t = 0;
	waitUntil {if (time > _t) then {_t = time + 15; call unitsts_fn2_k1}; false};




